package qingke.pojo;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="memorandum")
public class Memorandum {

	@Id
	@Column(name = "id")
	private int id;
	@Column(name = "create_time")
	private String createTime;
	@Column(name = "title")
	private String title;
	@Column(name = "content")
	private String content;
	
	@OneToMany
	@JoinColumn(name = "memorandum_id")
	private Set<AddLable> addLable;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Set<AddLable> getAddLable() {
		return addLable;
	}

	public void setAddLable(Set<AddLable> addLable) {
		this.addLable = addLable;
	}

	@Override
	public String toString() {
		return "Memorandum [id=" + id + ", createTime=" + createTime + ", title=" + title + ", content=" + content
				+ "]";
	}
	
	

}
